package com.xgk.boot.module.core.dal.entity.bil;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 客户业务账单费用明细
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("bil_business_bill_fee")
public class BilBusinessBillFeeDO extends BaseDO {

    /**
     * 自动增长列
     */
    @TableId(value = "bcbf_id", type = IdType.ASSIGN_ID)
    private Long bcbfId;

    /**
     * 账单ID
     */
    @TableField("bbb_id")
    private Long bbbId;

    /**
     * 业务类型代码
     * 如订单so等
     */
    @TableField("ds_code")
    private String dsCode;

    /**
     * 业务参考单号
     */
    @TableField("refer_code")
    private String referCode;

    /**
     * 运单号
     */
    @TableField("tracking_number")
    private String trackingNumber;

    /**
     * 费用种类
     */
    @TableField("ft_code")
    private String ftCode;

    /**
     * 本位币金额
     */
    @TableField("bbbf_amount")
    private BigDecimal bbbfAmount;

    /**
     * 原单金额
     */
    @TableField("bbbf_org_amount")
    private BigDecimal bbbfOrgAmount;

    /**
     * 币种
     */
    @TableField("currency_code")
    private String currencyCode;

    /**
     * 汇率
     */
    @TableField("currency_rate")
    private BigDecimal currencyRate;

    /**
     * 创建时间
     */
    @TableField("bbbf_add_time")
    private Date bbbfAddTime;

    /**
     * 修改时间
     */
    @TableField("bbbf_update_time")
    private Date bbbfUpdateTime;


    @Override
    public String toString() {
        return "BilBusinessBillFee{" +
        ", bcbfId = " + bcbfId +
        ", bbbId = " + bbbId +
        ", dsCode = " + dsCode +
        ", referCode = " + referCode +
        ", trackingNumber = " + trackingNumber +
        ", ftCode = " + ftCode +
        ", bbbfAmount = " + bbbfAmount +
        ", bbbfOrgAmount = " + bbbfOrgAmount +
        ", currencyCode = " + currencyCode +
        ", currencyRate = " + currencyRate +
        ", bbbfAddTime = " + bbbfAddTime +
        ", bbbfUpdateTime = " + bbbfUpdateTime +
        "}";
    }
}
